//
//  XZ_WebView.m
//  Project_Demo
//
//  Created by Leon on 2018/6/30.
//  Copyright © 2018年 caoxiaozhu. All rights reserved.
//

#import "XZ_BaseWebView.h"

@interface XZ_BaseWebView()<UIWebViewDelegate>

@end

@implementation XZ_BaseWebView

//- (instancetype)initWithFrame:(CGRect)frame
//{
//    self = [super initWithFrame:frame];
//    if (self) {
//        
//    }
//    return self;
//}

-(void)layoutSubviews{
    [self setupUrl];
}

-(void)setupUrl{
//    NSLog(@"urlStr==>%@",_url);
    NSURL *url = [NSURL URLWithString:_url];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [self loadRequest:request];
    
}

@end
